<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>  
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>人事调动</title>
</head>
<body>
<s:form action="transferAction_saveTransfer" namespace="/" method="post">
<s:iterator value="usersList"  >
<s:hidden name="users.userId" value="%{userId}"></s:hidden>
<s:hidden name="users.userName" value="%{userName}"></s:hidden>
<s:hidden name="users.password" value="%{password}"></s:hidden>
<s:hidden name="users.sex" value="%{sex}"></s:hidden>
<s:hidden name="users.authority.authorityId" value="%{authority.authorityId}"></s:hidden>
<s:hidden name="users.employeeNumber" value="%{employeeNumber}"></s:hidden>
<p>基本资料：</p>
<p>姓名：<s:property value="userName"/></p>
<p>密码：<s:property value="password" /></p>
<p>性别：
<s:if test="sex == 1"></s:if>男<s:else>女</s:else>
<p>级别：
<s:if test="authority.authorityId == 1">游客</s:if>
<s:if test="authority.authorityId == 2">管理员</s:if>
<s:if test="authority.authorityId == 3">总经理</s:if>
<s:if test="authority.authorityId == 4">副总经理</s:if>
<s:if test="authority.authorityId == 5">总监</s:if>
<s:if test="authority.authorityId == 6">部门经理</s:if>
<s:if test="authority.authorityId == 7">高级员工</s:if>
<s:if test="authority.authorityId == 8">普通员工</s:if>
</p>
<p>职务：<input type="text" name="users.duty" value="${duty}"></p>
<p>部门：<input type="text" name="users.department" value="${department}"></p>
<p>员工编号：<s:property value="employeeNumber" /></p><br>
<input type="submit" value="提交">
</s:iterator>
</s:form>
</body>
</html>